﻿using UnityEngine;
using System.Collections;

namespace UI
{
    public class RushEliteBossItem : MonoBehaviour
    {
        public CommonIcon icon;
        public UILabel itemNameLabel;
        public GameObject firstObj;

        public void Init(ProtoBuf.Message.BaseResource r, bool isFirst)
        {
            icon.SetData(r.id, false, r.num);
            itemNameLabel.text = TableTextBlo.GetText(CommonMethod.GetObjectNameTextId(r.id));
            firstObj.SetActive(isFirst);
        }
    }
}
